import { post } from '@/utils';
import { apiPrefix } from './prefix';

// 登录接口
export const postLogin = (params: Object) => post(`${apiPrefix}/Authorize/LoginAccount`, params);

// 注册接口
export const postRegistry = (params: Object) => post(`${apiPrefix}/Authorize/RegisterAccount`, params);

// 配置接口
export const postAppConfig = (params: Object) => post(`${apiPrefix}/IndexConfig/AppConfig`, params);

// 手机号前缀
export const postPhonePrefix = (params: Object) => post(`${apiPrefix}/phonePrefix`, params);

// 用户余额
export const postBalance = (params: Object) => post(`${apiPrefix}/Account/UserBalance`, params);

// 所有余额
export const postAllBalance = (params: Object) => post(`${apiPrefix}/Account/AllBalance`, params);

// 更新所有余额
export const postRefreshBalance = (params: Object) => post(`${apiPrefix}/Account/RefreshBalance`, params);

// 一键划转余额
export const postRecycleBalance = (params: Object) => post(`${apiPrefix}/Account/RecycleBalance`, params);

// 登录注册提示
export const postRegistryTips = (params: Object) => post(`${apiPrefix}/registry/tips`, params);

// 入口弹窗
export const postPrePop = (params: Object) => post(`${apiPrefix}/IndexConfig/PopAdConfig`, params);

// 轮播图
export const postBanner = (params: Object) => post(`${apiPrefix}/IndexConfig/BannerConfig`, params);

// 公告
export const postNotices = (params: Object) => post(`${apiPrefix}/IndexConfig/NoticeConfig`, params);

// 首页切换卡片主体内容
export const postMainMenu = (params: Object) => post(`${apiPrefix}/IndexConfig/IndexClassConfig`, params);

//
export const postSuggest = (params: Object) => post(`${apiPrefix}/suggest`, params);

// 折叠推荐游戏
export const postHotRecommendGame = (params: Object) => post(`${apiPrefix}/IndexConfig/HotRecommendGame`, params);

// 折叠最近玩过游戏
export const postHisPlayGame = (params: Object) => post(`${apiPrefix}/IndexConfig/HisPlayGame`, params);

// 折叠收藏游戏
export const postUserColletGameList = (params: Object) => post(`${apiPrefix}/IndexConfig/UserColletGameList`, params);

// 进入游戏授权
export const postGameAuth = (params: Object) => post(`${apiPrefix}/GameInfo/Authorized`, params);

// 离开游戏
export const postGameOut = (params: Object) => post(`${apiPrefix}/GameInfo/Out`, params);

// 收藏游戏
export const postColletGame = (params: Object) => post(`${apiPrefix}/GameInfo/ColletGame`, params);

// 活动列表
export const postActivity = (params: Object) => post(`${apiPrefix}/Activity/ActivityClassConfig`, params);

// 活动详情
export const postActivityDetail = (params: Object) => post(`${apiPrefix}/Activity/ActivityDetail`, params);

// 记录-分类列表
export const postGameType = (params: Object) => post(`${apiPrefix}/Record/GameType`, params);

// 记录-bet记录
export const postBetRecord = (params: Object) => post(`${apiPrefix}/Record/UserBetRecord`, params);

// 存款通道
export const postRechargeConfig = (params: Object) => post(`${apiPrefix}/Mall/MallRechargeConfig`, params);

// 存款通道-充值
export const postCreateOrder = (params: Object) => post(`${apiPrefix}//Pay/CreateOrder`, params);

// 取款通道
export const postWithdrawlConfig = (params: Object) => post(`${apiPrefix}/Mall/MallWithdrawlConfig`, params);

// 取款-绑定列表
export const postBindBankList = (params: Object) => post(`${apiPrefix}/Mall/UserBindBankList`, params);

// 取款-平台银行卡
export const postPlatBank = (params: Object) => post(`${apiPrefix}/Mall/PlatBank`, params);

// 取款-添加绑定银行卡
export const postAddBindBank = (params: Object) => post(`${apiPrefix}/Mall/AddUserBindBank`, params);

// 取款-添加绑定钱包
export const postAddBindWallet = (params: Object) => post(`${apiPrefix}/Mall/AddUserBindWallet`, params);

// 取款-申请提现
export const postWithdrawlCreateOrder = (params: Object) => post(`${apiPrefix}/Pay/WithdrawlCreateOrder`, params);

// 取款-我的提款信息
export const postUserBindBank = (params: Object) => post(`${apiPrefix}/Mall/UserBindBank`, params);

// 个人资料-更新我的信息
export const postUpdateUserInfo = (params: Object) => post(`${apiPrefix}/Account/UpdateUserInfo`, params);

// 个人资料-绑定手机号
export const postBindMobile = (params: Object) => post(`${apiPrefix}/Account/BindMobile`, params);

// 个人资料-绑定邮箱
export const postBindEmail = (params: Object) => post(`${apiPrefix}/Account/BindEmail`, params);

// 发送验证码
export const postSendVerfiyCode = (params: Object) => post(`${apiPrefix}/Authorize/SendVerfiyCode`, params);

// 更新登录密码
export const postUpdateLoginPwd = (params: Object) => post(`${apiPrefix}/Account/UpdateLoginPwd`, params);

// 更新资金密码
export const postUpdateFundPwd = (params: Object) => post(`${apiPrefix}/Account/UpdateFundPwd`, params);

// 退出登录
export const postLoginOut = (params: Object) => post(`${apiPrefix}/Account/LoginOut`, params);

// 返佣面板
export const postAgentRebatePanel = (params: Object) => post(`${apiPrefix}/Agent/AgentRebatePanel`, params);

// 邀请链接
export const postAgentInviteLink = (params: Object) => post(`${apiPrefix}/Agent/AgentInviteLink`, params);

// 返佣任务列表
export const postAgentRebateTask = (params: Object) => post(`${apiPrefix}/Agent/AgentRebateTask`, params);

// 我的返佣
export const postAgentRebateTotal = (params: Object) => post(`${apiPrefix}/Agent/AgentRebateTotal`, params);

// 邀请记录
export const postAgentTeam = (params: Object) => post(`${apiPrefix}/Agent/AgentTeam`, params);

// 领取返佣任务奖励
export const postReceiveAgentTaskAward = (params: Object) => post(`${apiPrefix}/Agent/ReceiveAgentTaskAward`, params);

// 提现订单列表
export const postWithdrawalOrder = (params: Object) => post(`${apiPrefix}/mall/WithdrawalOrder`, params);

// 意见反馈
export const postUserSuggest = (params: Object) => post(`${apiPrefix}/Account/InsertUserSuggest`, params);

// 意见反馈列表
export const postUserSuggestList = (params: Object) => post(`${apiPrefix}/Account/UserSuggestList`, params);

// 个人消息
export const postNoticeList = (params: Object) => post(`${apiPrefix}/Record/UserNoticeRecordList`, params);

// 系统消息
export const postSystemNoticeList = (params: Object) => post(`${apiPrefix}/Record/SystemNoticeRecordList`, params);

// 游戏公告
export const postGameNoticeList = (params: Object) => post(`${apiPrefix}/Record/GameNoticeRecordList`, params);
